// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2018-2023.
 * Description: irq: merge high-precision timer can reduce interrupts and context switches
 * Author: langfei
 * Create: 2023-12-25
 */

#include <linux/percpu-defs.h>
#include <linux/kernel_stat.h>

#include "cpu_high_precision.h"

void period_divisor_deal(unsigned int cpu)
{
	if (per_cpu(period_divisor, cpu) != 0) {
		per_cpu(period_divisor, cpu)  = 0;
#if defined(CONFIG_X86_64)
		smp_call_function_single(cpu, change_to_deadline, NULL, 1);
#endif
	}
}
